#ifndef WORD_H
#define WORD_H
#include <QObject>
class Word
{
public:
    int id() const;
    void setId(int newId);
    const QString &original() const;
    void setOriginal(const QString &newOriginal);
    const QString &translation() const;
    void setTranslation(const QString &newTranslation);
    const int &vocabularyId() const;
    void setVocabularyId(const int &newVocabularyId);


private:
    int m_id;            //0 到 4294967295
    QString m_original;       //原文
    QString m_translation;    //译文
    int m_vocabularyId;       //所属词汇
};



#endif // WORD_H
